<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg=""/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import {reactive,onMounted} from 'vue'
import { getHomeData,getBanner } from '@/network/home';
export default {
  name: 'HomeView',
  setup(){
    const banner = reactive({
      list:[]
    })
    onMounted(()=>{
      console.log("11111")
      getHomeData().then(res=>{
        banner.list=res.slides
      }).catch(err=>{

      })
    })
    return{banner}
  },
  components: {
    HelloWorld
  }
}
</script>
